<?php

namespace app\index\model;

use think\Model;

class User extends Model
{
	protected $autoWriteTimestamp = true;
	public function refresh()
	{
		$user = $this->where(session('user')->user_id)->find();

        session('user',$user);
	}

}
